<template>
		<view class="goods_wrap tn-flex tn-flex-col-center tn-flex-row-between">
			<view class="tn-flex tn-flex-col-center">
				<img :src="item.img_path" alt="" class="img">
				<view class="goods_info">
					<view class="name">
						{{item.name}}
					</view>
					<view class="">
						<text class="price">¥ {{item.price}} </text>
						<text> /{{item.unit}}</text>
					</view>
				</view>
			</view>
			<view class="goods_info">
				<view class="name">
					 
					<text class="total">¥{{item.price}}</text>
				</view>
				<view class="sign_number">
					<text class="sign">X</text>
					<text class="number">{{item.number}}</text>
				</view>
			</view>
		</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: Object,
				default: () => ({})
			}
		},
		data() {
			return {
				current_number: 0,
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	::v-deep .tn-checkbox__icon-wrap--checked {
		background-color: #01BEFF !important;
		border-color: #01BEFF !important;
	}

	::v-deep .tn-checkbox__icon-wrap {
		border: 1rpx solid #eee !important;
		width: 40rpx !important;
		height: 40rpx !important;
	}

	.goods_wrap {
		width: 100%;
		padding: 20rpx;
		margin-bottom: 4rpx;
		border-bottom: 2rpx solid #eee;
		background-color: #fff;
		border-radius: 20rpx;

		.img {
			// width: 150rpx;
			height: 120rpx;
		}



		.goods_info {
			margin-left: 40rpx;

			.name {
				margin-bottom: 15rpx;
				font-size: 36rpx;
			}

			.price {
				margin-top: 10rpx;
				font-size: 36rpx;
				color: red;
				font-weight: 600;
			}

			.total {
				font-size: 32rpx;
			}

			.sign_number {
				text-align: right;

				.sign {
					margin-right: 2rpx;
					font-size: 24rpx;
				}

				.number {
					text-align: right;
					font-size: 34rpx;
				}
			}

		}
	}
</style>